package org.jeecg.modules.purchase.service;

//import com.sun.org.apache.xpath.internal.operations.Bool;
//import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.purchase.entity.MerchantProviderCertification;
import org.jeecg.modules.purchase.entity.MerchantProvider;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 供应商
 * @Author: jeecg-boot
 * @Date:   2022-12-21
 * @Version: V1.0
 */
public interface IMerchantProviderService extends IService<MerchantProvider> {

	/**
	 * 添加一对多
	 *
	 * @param merchantProvider
	 * @param merchantProviderCertificationList
	 */
	public void saveMain(MerchantProvider merchantProvider,List<MerchantProviderCertification> merchantProviderCertificationList) ;
	
	/**
	 * 修改一对多
	 *
	 * @param merchantProvider
	 * @param merchantProviderCertificationList
	 */
	public void updateMain(MerchantProvider merchantProvider,List<MerchantProviderCertification> merchantProviderCertificationList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
    
    /**
     * 查询全部在过期时间内的数据
     * @param expiredDay
     */
    public List<MerchantProvider> getExpried(String expiredDay);
    
    /**
     * 获取指定合同结束日期的数据
     * @param expriedDay
     * @return
     */
    public List<MerchantProvider> getByEndTime(String expriedDay);
    
    /**
     * 修改过期数据状态和禁用状态
     * @param id
     * @return
     */
    Boolean expriedUpdate(String id);
	
}
